package com.ruoyi.pos.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * customer对象 _customer
 * 
 * @author wzh
 * @date 2021-05-04
 */
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id标识，0为散户 */
    private Long id;

    /** 会员编号，默认0为散户 */
    @Excel(name = "会员编号，默认0为散户")
    private String customerCode;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String telephone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 等级，对应不同的折扣力度，散客默认为0级 */
    @Excel(name = "等级，对应不同的折扣力度，散客默认为0级")
    private Long level;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    private Date createtime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerCode(String customerCode) 
    {
        this.customerCode = customerCode;
    }

    public String getCustomerCode() 
    {
        return customerCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerCode", getCustomerCode())
            .append("name", getName())
            .append("sex", getSex())
            .append("email", getEmail())
            .append("telephone", getTelephone())
            .append("address", getAddress())
            .append("password", getPassword())
            .append("level", getLevel())
            .append("createtime", getCreatetime())
            .toString();
    }
}
